package com.rykj.energy.database.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 组织表 
 * </p>
 *
 * @author Gan Lu
 * @since 2020-04-18
 */
@Data
@TableName("organization")
@ApiModel(value="Organization对象", description="组织表 ")
public class Organization extends BasePojo {

    private static final long serialVersionUID = -1585126141567278502L;

    @ApiModelProperty(value = "组织ID")
    @TableId(value = "id")
    private Integer id;

    @ApiModelProperty(value = "组织名称")
    private String name;

    @ApiModelProperty(value = "上级组织")
    private Integer parentId;

    @ApiModelProperty(value = "负责人")
    private Integer chargerId;

    @ApiModelProperty(value = "创建人id")
    private Integer createrId;

    @ApiModelProperty(value = "序号")
    private Integer seq;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "组织类型")
    private Integer orgType;

    @ApiModelProperty(value = "全称")
    private String fullName;

    @ApiModelProperty(value = "区域坐标/批次号")
    private String batchNumber;

    @ApiModelProperty(value = "区域编号")
    @TableField(value = "orgNum")
    private String orgNum;

}
